<!-- prettier-ignore -->
<section class="mt4">
  <h3 class="title-3" id="{{ .Name }}">
    {{ range .Aliases }}<a id="{{ . }}"></a>{{ end }}{{ .Name }}{{ if .Aliases }} / {{ join .Aliases " / " }}{{ end }}
  </h3>

  <code class="code-signature">
    {{ .Name }}(
      {{- range $i, $arg := .Args -}}
          {{- if gt $i 0 }}, {{ end -}}
          {{- if not $arg.Required -}}
            <span class="optional">{{- $arg.Name -}}</span>
          {{- else -}}
            {{- $arg.Name -}}
          {{- end -}}
      {{- end }})
  </code>

  <p>{{ newlines .Name .Comment }}</p>

  <div class="overflow-x-auto">
    <table class="table">
      <thead>
        <tr>
          <th>Argument</th>
          <th>Required</th>
          <th>Type</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
      {{ range .Args }}
        <tr>
          <td>{{ .Name }}</td>
          <td>{{ if .Required }}yes{{ end }}</td>
          <td>{{ join .Types " or " }}</td>
          <td>{{ newlines .Name .Comment }}</td>
        </tr>
      {{ end }}
      </tbody>
    </table>
  </div>
</section>
